<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<link rel="stylesheet" type="text/css" href="<?php echo $base_url ;?>css/style.css" />
        <title><?php echo $company_name; ?> &middot; Password Change</title>

		<link type="text/css" href="<?php echo $base_url ;?>js/jquery-ui-1.8.16.custom/css/ui-lightness/jquery-ui-1.8.16.custom.css" rel="Stylesheet" />	
		<script type="text/javascript" src="<?php echo $base_url ;?>js/jquery-ui-1.8.16.custom/js/jquery-1.6.2.min.js"></script>
		<script type="text/javascript" src="<?php echo $base_url ;?>js/jquery-ui-1.8.16.custom/js/jquery-ui-1.8.16.custom.min.js"></script>		
		<script type="text/javascript" src="<?php echo $base_url; ?>js/jquery.blockUI.js"></script>
<script language="javascript">
		$.noConflict();
		var __base_url   = '<?=base_url()?>';
		var __csrf       = '<?=$this->security->get_csrf_hash();?>';
		var __locale     = '<?php echo str_replace("'","\'",json_encode($locale));?>';
		var __ts		 = <?php echo time(); ?>;
		var __guid		 = '<?php echo $__guid; ?>';
		
</script>

<style type="text/css">
	.error_descr {
			font-weight:bold;
			color:red;
			display:none;
			padding:0;
			margin:0;
	}
	form tr.error{
		background-color: #FFDFDF !important;
		margin-bottom:3px !important;
	}
</style>

	</head>
	<body>
        <div id="notification_message">
        	<div id="notification_close"><a href="/settings/notification_close?msg=">X</a></div>
        	<div id="notification_body"></div>

        </div>
		<noscript>
			<style type="text/css">
				#menu .item {background: #ffffff url(images/mainmenu_active_bg.png) repeat-x top;} 
				#menu .item .level2{display: block;}
			</style>
		</noscript>
		<table width="966" cellpadding="0" cellspacing="0" border="0" align="center">
			<tr>
				<td>
					<div id="header">
						<div class="h_item logo">
							<a href="<?php echo $base_url ;?>">

								<img src="<?php echo $base_url ;?>images/logo.png" alt="" />
							</a>
						</div>

						<div id="topMenu">
	                        
						</div>
					</div>
					<div id="middle">
						<table cellpadding="0" cellspacing="0" border="0" width="100%">

							<tr valign="top">
								
								<td width="200">
									<div id="leftColumn">

										
										<br />
					                    <table border="0" cellpadding="0" cellspacing="0" align="center">
					                    	<tr>
					                    		<td>
	</td>
					                    	</tr>
					                    </table>
									</div>
								</td>
								<td style="width: 15px;">&nbsp;</td>

		                    	
								<td id="content">
			                        
<h1>Password Change</h1>

<form id="reset-form" method="post" action="" class="loginForm">
    <table class="logintable">
        <tr id="form-item_pass">
        	<td>New password</td>
            <td width="150">
					<input type="password" class="text" id="pass" name="pass" maxlength="25" style="width: 98%;" />
					<p class="error_descr"></p>
			</td>
        </tr>
		<tr id="form-item_pass2">
        	<td>Confirm New password</td>
            <td width="150">
					<input type="password" class="text" id="pass2" name="pass2" maxlength="25" style="width: 98%;" />
					<p class="error_descr"></p>
			</td>
        </tr>
        <tr>
        	<td>&nbsp;</td>
            <td align="center"><input id="bt-reset" type="submit" value="Save" style="width: 100%;" /></td>
        </tr>
    </table>
	<p><a href="<?=base_url()?>sessions/login/">Login to your account</a></p>
	
</form>


								</td>

							</tr>
						</table>
					</div>
					<?php
						$tpl_page 	= new Tpl_page(); $tpl_page->where('type','footer')->get(1);
						if($tpl_page->exists()) echo $tpl_page->content;
					?>
				</td>
			</tr>
		</table>
		
		
<script src="<?php echo $base_url; ?>js/validation.js"></script>
<script src="<?php echo $base_url; ?>js/sessions.js"></script>
<script language="javascript">
		jQuery(document).ready(function() {
				var _obj_local = jQuery.parseJSON(__locale);
				jQuery('#bt-reset').click(function(event) {
						event.preventDefault();
						GolderMarkets.Sessions.SaveNewPass();
						return false;
				});
				jQuery('#reset-form').submit(function() {
						GolderMarkets.Sessions.SaveNewPass();
						return false;
				});				
		});
</script>	
	
	<div id="dialog" title="Password Reset"></div>
	</body>
</html>
